(function () {
    let width = window.innerWidth;
    let size = (width / 640) * 40;
    document.documentElement.style.fontSize = (size < 40 ? size : 40) +"px";
}());